package com.dingwen.treasure.base.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 定时任务状态枚举
 *
 * @author dingwen
 * @date 2022/05/10
 */
@Getter
@AllArgsConstructor
public enum QuartzStateEnum implements BaseEnum<Integer>{

    /**
     * 禁用
     */
    DISABLE(0, "禁用"),
    /**
     * 启用
     */
    ENABLE(1, "启用");


    /**
     * code
     */
    private final Integer code;

    /**
     * description
     */
    @JsonValue
    private final String description;


    /**
     * 获取枚举类描述
     *
     * @return {@link String}
     */
    @Override
    public String getEnumDescription() {
        return "定时任务状态";
    }
}
